Skip to content

fix(tags): ensure consistent vertical spacing across mobile view (#276)#284

Open
Preetiaarya wants to merge 63 commits intotattle-made:masterfrom
Preetiaarya:fix/blog-tags-gap
Open

fix(tags): ensure consistent vertical spacing across mobile view (#276)#284
Preetiaarya wants to merge 63 commits intotattle-made:masterfrom
Preetiaarya:fix/blog-tags-gap

Conversation

@Preetiaarya
Copy link
Copy Markdown
Contributor

This PR fixes issue #276 by applying consistent vertical spacing between tags on mobile view.

Changes Made:

  • Wrapped tag items in a with:
    • pad={{ vertical: "xsmall" }}
    • round="xsmall"
    • margin={{ bottom: "xxsmall" }}
  • This ensures that each tag has padding and margin even before any interaction like "Show more tags".
  • Also added a margin={{ bottom: "small" }} to the container above the tags to maintain spacing in the layout.

This ensures the tag layout looks consistent and avoids layout shift on small screens.

Screeenshort
image

@netlify
Copy link
Copy Markdown

netlify bot commented Jun 4, 2025

Deploy Preview for tattle-website-preview ready!

Name Link
🔨 Latest commit 755cb49
🔍 Latest deploy log https://app.netlify.com/projects/tattle-website-preview/deploys/689b33484f30e50008bd25e9
😎 Deploy Preview https://deploy-preview-284--tattle-website-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Preetiaarya
Copy link
Copy Markdown
Contributor Author

Hello @maanasb01 Sir, Could you please review the changes I made to fix the tag spacing issue on the Blog page? I added vertical padding and bottom margin to each tag container to ensure consistent spacing, especially on mobile view.

@maanasb01 maanasb01 linked an issue Jun 4, 2025 that may be closed by this pull request
@maanasb01
Copy link
Copy Markdown
Collaborator

Hey @Preetiaarya, the issue also mentions fixing the updates' tags as well. Can you fix them as well? The project tags for the updates page are already fixed with the changes that you made, but each update also has tags listed within it. In mobile view, these tags are vertically aligned instead of covering the horizontal space. We need to wrap these tags (we can try flex-wrap or whatever else you want to try is also fine), so that they utilize the horizontal space properly.
Example screenshot of an update in mobile view:

Image

@maanasb01
Copy link
Copy Markdown
Collaborator

Hey @Preetiaarya, any update on this?

@maanasb01 maanasb01 closed this Jun 25, 2025
@maanasb01 maanasb01 reopened this Jun 25, 2025
@Preetiaarya
Copy link
Copy Markdown
Contributor Author

Hello @maanasb01, I’ve pushed the blog tags padding and font size changes to fix/blog-tags-gap.
Sorry for the delay — please review when you get a time.

@dennyabrain
Copy link
Copy Markdown
Contributor

Screenshot 2025-08-13 at 10-28-34 blog Screenshot 2025-08-13 at 10-28-14 blog

I feel like the text size has become very small now @Preetiaarya @maanasb01 what do you think? possible to not reduce the text size of the tags?

@maanasb01
Copy link
Copy Markdown
Collaborator

Hey @Preetiaarya, can you please take this up?

Preetiaarya and others added 15 commits February 11, 2026 16:41
* Fix image overflow in MDX and enhance level-2 headings with Tailwind styling for spacing and readability

* Add responsive styling to MDX images for better visibility

* Update img width on 2019 report page

* fixes tattle-made#273: [Change heading level for Contributors section in mdx file]

* Wrapped section in w-full div as suggested

* Update heading level

* revert box padding to small
* Adjust Box padding and Heading margin for better layout spacing

* fixes tattle-made#272: [Add overflow hidden to iframe container to prevent overlap on small screens.]

* fixes tattle-made#272: [Fix iframe overflow on small screens in ogbv.jsx]

* Added overflow: hidden to fix layout shift in ogbv.jsx
tattle-made#281)

* Fixes tattle-made#274: [Added horizontal padding to header for better mobile layout]

* fixes tattle-made#281: [Apply horizontal padding only on small screens in conditional Box rendering.]

fix: change the header padding to medium in mobile view
…ile view) (tattle-made#283)

* fixes tattle-made#275: [Updated some Heading levels, heading line-height, links overflow, img overflow of blog mdx file]

* fixes tattle-made#275: [added spacing above image, handled overflow for image, links, tables, and iframes, and corrected Heading syntax]

* fix tattle-made#275: fix overflowing link in 2023-12-17-sprint-dmm.mdx causing layout shift on mobile

* fix tattle-made#275: prevent text and link overflow on small screens in topic modelling post by using word-break

* refactor: move Grommet Heading import to top in similar videos blog

* refactor: move Heading import to top in blog files

* fix: update blog date to 16 and apply link wrapping to prevent mobile layout shift

* shift 'Heading' import below frontmatter to follow MDX syntax rules

* shift 'Heading' import below frontmatter to follow MDX syntax rules

* correct blog post date to 2024-03-13 as per original publish schedule
* fixes tattle-made#286: [show 'Other Projects' in mobile nav by mapping index 4 and updating description
]

* revert: remove description for "Other Projects" in dropDownOptionsTools to maintain original content
* fix tattle-made#285: add bottom margin to TagBubble to ensure spacing on wrap

* fix tattle-made#285: add spacing and prevent tag overlap in FeaturedListItem and AllListItem for all screen sizes

* refactor: remove margin-bottom from TagBubble to shift spacing control to parent

* fix: add vertical spacing between wrapped tag rows using Tailwind's gap-y-2
…e-made#300)

* docs: add JSDoc comments to BlogSidebar and RelatedPostItem

* docs(Calendar): add JSDoc for Calendar component with prop types and behavior description

* docs: add JSDoc to BlogDashboard component

* docs: add JSDoc to BlogIndex component with tag and blog layout info

* docs: add JSDoc to blog layout component

* docs: add JSDoc for DefaultLayoutNarrow layout component

* docs: add JSDoc for DefaultLayout component

* docs: add JSDoc to  people layout component

* docs: Add JSDoc for TagTemplate layout and byline helper

* docs: add JSDoc to TagProjectPage component

* docs: add JSDoc for UpdatesTagProjectPage component

* docs: add JSDoc for UpdatesTagProjectPage component

* docs: add JSDoc for SitemapLayout component

* docs: add JSDoc for DropDownMenu component

* docs: add JSDoc for LatestBlogsUpdates component

* docs: add JSDoc for LatestProductBlogsUpdates component

* docs: add JSDoc for LatestEntries component and helper functions

* docs: add JSDoc for CovidWhatsappTSNEMap component

* docs: add JSDoc for VaccineHesitancyClusterVisualization component

* docs: add JSDoc for AllBlogindexLayout component

* docs: add JSDoc for NarrowContentWrapper component

* docs: add JSDoc for NarrowSection component

* docs: add JSDoc for ContentpageLayout component

* docs: add JSDoc for BlogHeadercard component

* docs: add module-level JSDoc for corestyle component

* docs: add JSDoc for CustomCodeBlock component

* docs: add JSDoc for IconFeed SVG component

* docs: add JSDoc for InlineCodeBlock component

* docs: add JSDoc for MailchimpSubscribeForm component

* docs: add JSDoc for MasonryLayout component

* docs: add JSDoc for MasonryLayoutResponsive

* docs: add jSDoc for peopleCard component

* docs: add jSDoc for ResponsiveContributorGrid component

* docs: add JSDoc for ResponsiveImage component

* docs: add JSDoc for SEO component

* docs: add jSDoc for simpleheader component

* docs: add JSDoc for SmallFooter component

* docs: add JSDoc for Spinner component

* docs: add JSDoc for TagBubble component

* docs: add JSDoc for tagBubbleBlog component

* docs: add JSDoc for TattleLinks component

* docs: add JSDoc for TattleLogo component

* docs: add JSDoc for textstyle exports

* docs: add JSDoc for TattleTheme object
tarunima and others added 29 commits February 11, 2026 16:41
* Add new blog post: Denormalising Slurs and Building Resilience to Online Workshops
* Add 'What is AI Safety?' blog post
* Add new update files to updates page

* fix typo

* Sort update files name  and remove launch tags

* chore: add missing titles, fix dates, etc

---------

Co-authored-by: Denny George <denny@tattle.co.in>
Co-authored-by: maanasb01 <maanasb01@gmail.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 11, 2026

Deploy Preview for tattle-website-preview ready!

Name Link
🔨 Latest commit a648de6
🔍 Latest deploy log https://app.netlify.com/projects/tattle-website-preview/deploys/698c6424683b4600085ed8bb
😎 Deploy Preview https://deploy-preview-284--tattle-website-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix tags gap throughout the website in mobile view

5 participants